Skip to content

Instantly share code, notes, and snippets.

@schickling
schickling / effect-httpclient-usage-guide.md
Created December 5, 2025 08:32
Effect HttpClient usage patterns with verified examples (Bun + FetchHttpClient)

Effect HttpClient Usage Guide

Minimal verified recipe (Bun + FetchHttpClient)

  • Tested against httpbin; includes retries, base URL, schema decoding.
import { FetchHttpClient, HttpClient, HttpClientRequest, HttpClientResponse } from "@effect/platform"
import { Effect, Schema, Schedule } from "effect"

const Args = Schema.Record({ key: Schema.String, value: Schema.String })

#!/bin/bash

Claude Code statusline with two-line design and semantic color theory

Line 1: Repo/code context (cool blues/cyans)

Line 2: Session/context info (complementary warm tones)

input=$(cat)

Extract data from JSON

@elado
elado / Amex - Add all offers to card.md
Last active January 14, 2026 12:39
American Express / Amex - Add all offers to card at once (bookmarklet)

American Express - Add all offers to card at once

If you own an AMEX card, you can add a bunch of offers to the card in this link: https://global.americanexpress.com/offers/eligible

There are many offers, and they change all the time. Instead of clicking "Add to card" repeatedly, I created this bookmarklet.

In Chrome, add a new bookmark (right click on bookmarks bar -> "Add Page...") with the following URL:

@wojteklu
wojteklu / clean_code.md
Last active January 14, 2026 12:34
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@azumukupoe
azumukupoe / autovsr.lua
Last active January 14, 2026 12:34
AutoVSR for MPV
local mp = require 'mp'
local autovsr_enabled = false
local function autovsr()
local display_width = mp.get_property_native("display-width")
local video_width = mp.get_property_native("width")
local display_height = mp.get_property_native("display-height")
local video_height = mp.get_property_native("height")
if video_width and display_width and video_height and display_height then
@rvrsh3ll
rvrsh3ll / windows-keys.md
Created February 18, 2024 22:44
Windows Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

@gangefors
gangefors / Install FreeNAS SCALE on a partition and create a mirror.md
Last active January 14, 2026 12:33
How to install TrueNAS SCALE on a partition instead of the full disk

Install TrueNAS SCALE on a partition instead of the full disk

The TrueNAS installer doesn't have a way to use anything less than the full device. This is usually a waste of resources when installing to a modern NVMe which is usually several hundred of GB. TrueNAS SCALE will use only a few GB for its system files so installing to a 16GB partition would be helpful.

The easiest way to solve this is to modify the installer script before starting the installation process.

@sgfbhjgdsrhbg
sgfbhjgdsrhbg / Dark Verse APK.md
Created September 27, 2025 07:47
Dark Verse APK v4 (Bug) Gratis untuk Android - Unduh Versi Terbaru
image

Dark Verse APK: Panduan Lengkap 🌑📱

Dark Verse APK adalah aplikasi Android inovatif yang dirancang untuk pengguna yang mengutamakan pengalaman komunikasi yang lancar dan stabil. Aplikasi ini bertujuan untuk menguji dan meningkatkan kinerja serta keandalan aplikasi pesan populer, memastikan komunikasi berjalan mulus dan tanpa gangguan. Baik Anda pengguna kasual maupun komunikator profesional, Dark Verse APK menawarkan solusi sempurna untuk mengoptimalkan pengalaman pesan Anda.

Pengenalan Dark Verse APK

@sergebulaev
sergebulaev / .tmux.conf
Created January 14, 2026 11:46
Tmux config by Sergey Bulaev (bulaev.ai) | Telegram: https://t.me/sergiobulaev
# ============================================================================
# Конфиг tmux от Сергея Булаева (bulaev.ai)
# Телеграм канал на русском: https://t.me/sergiobulaev
# ============================================================================
#
# УСТАНОВКА:
# 1. Установить tmux: sudo apt install tmux (Ubuntu) / brew install tmux (Mac)
# 2. Установить TPM (менеджер плагинов):
# git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# 3. Скопировать этот файл в ~/.tmux.conf
@mattroz
mattroz / Google Docs API
Last active January 14, 2026 12:29
Instructions for creating a doc and inserting some text
1. Go to https://developers.google.com/docs/api/quickstart/python and download credentials.json by clicking on "DOWNLOAD CLIENT CONFIGURATION"
2. Put credentials.json in your working directory
3. Do `pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib`
4. See the code above.
Useful link on editing, inserting and deleting text: https://developers.google.com/docs/api/how-tos/move-text